//
//  YHEvenMode.h
//  ThunderWarriors
//
//  Created by heinic on 13-3-3.
//
//

#ifndef ThunderWarriors_YHEventMode_h
#define ThunderWarriors_YHEventMode_h

#include "cocos2d.h"


using namespace cocos2d;


class YHEventMode :public cocos2d::CCObject
{
    
public:
    //virtual void initEventName(char * className);
    virtual void registerEvent(SEL_CallFuncO selector,const char *name,cocos2d::CCObject *obj);
    virtual void dispatchEvent(const char *name,cocos2d::CCObject *obj);
    virtual void removeEvent(const char *name);
    YHEventMode();
    virtual ~YHEventMode();
    bool isEventEnabled();
    void setEventEnabled(bool enabled);
protected:
    CCNotificationCenter *s_sharedNotifCenter;
    bool m_bEventEnabled;
    std::vector<char *> events;

};




#endif



